//
//  AccountLoginViewController.h
//  Finance
//
//  Created by Hu Jianguo on 13-4-15.
//  Copyright (c) 2013年 cheng xiang. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface AccountLoginViewController : UIViewController<UITextFieldDelegate>
{
    UITextField*    username;
    UITextField*    userpassword;
    
    UIButton*       autologin;
    UIButton*       lookbackpassword;
    
    UIButton*       btnlogin;
    UIButton*       btnRegister;
    
    NSString*       registerUserName;
    
    UIButton*       btnNoautologin;
}

@property(nonatomic,strong) IBOutlet UITextField*    username;
@property(nonatomic,strong) IBOutlet UITextField*    userpassword;
@property(nonatomic,strong) IBOutlet UIButton*       autologin;
@property(nonatomic,strong) IBOutlet UIButton*       btnNoautologin;
@property(nonatomic,strong) IBOutlet UIButton*       lookbackpassword;
@property(nonatomic,strong) IBOutlet UIButton*       btnlogin;
@property(nonatomic,strong) IBOutlet UIButton*       btnRegister;

@property(nonatomic,strong) NSString*       registerUserName;
-(IBAction)autoLogin :(id)sender;
-(IBAction)noautoLogin :(id)sender;

-(IBAction)lookbackPassword:(id)sender;

-(IBAction)userLogin:(id)sender; 
-(IBAction)userRegister:(id)sender;

-(void)showMessageBox:(NSString*)title content:(NSString*)content;

-(NSDictionary*)setLoginPackketBody:(NSString*)userName  UserPassword:(NSString*)userPassword;

-(void)sendUserLoginInfo:(NSData*)jsonData;
-(void)backToMain;


@end
